home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
US Department of Defenseā¦ndamentals 1.0 2004 April
/
US Department of Defense: Firewall & Router Fundamentals 1.0 2004 April.iso
/
sco
/
interface
/
sco_Main.swf
/
scripts
/
DefineSprite_77
/
frame_1
/
DoAction.as
Wrap
Text File
|
2004-03-29
|
1KB
|
71 lines
function end(setTarget, frame)
{
setTarget.gotoAndStop(setTarget._totalframes);
scrubTargetState = "stop";
}
function begin(setTarget, frame)
{
setTarget.gotoAndStop(frame);
scrubTargetState = "stop";
}
function stopMovie(setTarget)
{
setTarget.stop();
}
function playMovie(setTarget)
{
setTarget.play();
}
function scrubHandlePlay(setTarget)
{
handle._x = (timeLine._width - handle._width) * (setTarget._currentframe / setTarget._totalframes);
}
function scrubHandle(setTarget)
{
setTarget.gotoAndStop(int(setTarget._totalframes * (handle._x / (timeLine._width - handle._width))));
}
function theCurrentFrame(setTarget)
{
return setTarget._currentframe;
}
function scrubEngine(theTarget, speed)
{
var _loc1_ = theTarget;
if(scrubDirection == "reverse")
{
directionA = _loc1_._currentframe - Number(speed);
directionB = directionA;
}
else
{
directionA = _loc1_._currentframe + Number(speed);
directionB = directionA;
}
_loc1_.gotoAndStop(directionA);
if(directionA < 1)
{
_loc1_.gotoAndStop(1);
}
if(directionA > _loc1_._totalframes)
{
_loc1_.gotoAndStop(target._totalframes);
scrubTargetState = "stop";
}
if(scrubTargetState == "play")
{
_loc1_.play();
}
else
{
_loc1_.stop();
}
}
if(scrubTargetState == "play")
{
playMovie(scrubTarget);
}
else
{
stopMovie(scrubTarget);
}